package com.hnust.service;

import com.hnust.dao.ClassDao;
import com.hnust.domain.Class;
import com.hnust.domain.record.ClassRecord;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.Map;
/**
 * 班级管理的服务接口
 * */
public interface ClassService {
    //获取所有年纪
    public Map getGrades() throws Exception;
    //根据年纪，学院获取班级
    public Map getMajors(String collegeId,String grade) throws Exception;
    //根据年纪，专业获取班级号
    public Map getNumbers(String grade,String major) throws Exception;
    //根据学院Id获取所有班级
    public Map getClasses(String collegeId,Integer currentPage, Integer rows) throws Exception;
    //按指定信息查找班级
    public Map queryClasses(String collegeId, ClassRecord classRecord, Integer currentPage, Integer rows) throws Exception;
    //添加班级
    public Boolean addClasses(ClassRecord classRecord) throws Exception;
    //删除班级
    public <T> Boolean deleteClass(T classIds);

    //根据学院Id获取所有班级
    public Map getAllClasses(String collegeId,int page, int pageNum) throws Exception;
}

